home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / Wipeout / source / installpatches.h < prev    next >
C/C++ Source or Header  |  1998-04-12  |  2KB  |  62 lines

  1. /*
  2.  * $Id: installpatches.h 1.4 1998/04/12 17:29:18 olsen Exp olsen $
  3.  *
  4.  * :ts=4
  5.  *
  6.  * Wipeout -- Traces and munges memory and detects memory trashing
  7.  *
  8.  * Written by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9.  * Public Domain
  10.  */
  11.  
  12. #ifndef _INSTALLPATCHES_H
  13. #define _INSTALLPATCHES_H 1
  14.  
  15. /****************************************************************************/
  16.  
  17. #ifndef global
  18. #define global extern
  19. #endif    /* global */
  20.  
  21. /****************************************************************************/
  22.  
  23. /* this defines the function pointers the original memory allocation routines
  24.  * will respond to after we have patched them.
  25.  */
  26.  
  27. global APTR (* ASM OldAllocMem)(REG(d0) ULONG                byteSize,
  28.                                 REG(d1) ULONG                attributes,
  29.                                 REG(a6) struct ExecBase *    sysBase);
  30.  
  31. global VOID (* ASM OldFreeMem)(REG(a1)    APTR                memoryBlock,
  32.                                REG(d0) ULONG                byteSize,
  33.                                REG(a6) struct ExecBase *    sysBase);
  34.  
  35. global APTR (* ASM OldAllocVec)(REG(d0) ULONG                byteSize,
  36.                                 REG(d1) ULONG                attributes,
  37.                                 REG(a6) struct ExecBase *    sysBase);
  38.  
  39. global VOID (* ASM OldFreeVec)(REG(a1)    APTR                memoryBlock,
  40.                                REG(a6) struct ExecBase *    sysBase);
  41.  
  42. global APTR (* ASM OldCreatePool)(REG(d0) ULONG                memFlags,
  43.                                   REG(d1) ULONG                puddleSize,
  44.                                   REG(d2) ULONG                threshSize,
  45.                                   REG(a6) struct ExecBase *    sysBase);
  46.  
  47. global VOID (* ASM OldDeletePool)(REG(a0) APTR                poolHeader,
  48.                                   REG(a6) struct ExecBase *    sysBase);
  49.  
  50. global APTR (* ASM OldAllocPooled)(REG(a0) APTR                    poolHeader,
  51.                                    REG(d0) ULONG                memSize,
  52.                                    REG(a6) struct ExecBase *    sysBase);
  53.  
  54. global VOID (* ASM OldFreePooled)(REG(a0) APTR                poolHeader,
  55.                                   REG(a1) APTR                memoryBlock,
  56.                                   REG(d0) ULONG                memSize,
  57.                                   REG(a6) struct ExecBase *    sysBase);
  58.  
  59. /****************************************************************************/
  60.  
  61. #endif /* _INSTALLPATCHES_H */
  62.